
package cn.akwangl.design.pattern.behavioral.visitor;

/**
 * 具体访问者A类
 *
 * @author youyongkun
 * @date 2021/12/8 21:43
 */
public class ConcreteVisitorA implements Visitor {
    @Override
    public void visit(ConcreteElementA element) {
        System.out.println("具体访问者A访问-->" + element.operationA());
    }

    @Override
    public void visit(ConcreteElementB element) {
        System.out.println("具体访问者A访问-->" + element.operationB());
    }
}